﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace YaAppoint.Rules
{
    [Serializable]
    public class RuleTemplateDto
    {
        public Guid Id { get; set; }

        public bool IsDirectory { get; set; } = false;

        public Guid? ParentId { get; set; }

        public List<RuleTemplateDto>? Children { get; set; }

        public string Name { get; set; }

        public string TypeName { get; set; }

        public string? ParentName { get; set; }

        public string? Script {get;set;}

        public string? Description { get; set; }

        public int Order { get; set; } 

        public bool IsActive { get; set; } = true;

    }
}
